var mixin = {
  methods: {
    /**
     * 合并各种待遇转换为不为空的字符串
     * expectedOther为底薪，为保底，为签约金，为其他
     */
    getSalaryStr(
      expectedBaseSalary,
      expectedBottomGuard,
      expectedSigningBonus,
      expectedOther
    ) {
      let str = "";

      if (expectedBaseSalary) {
        str += "底薪：" + expectedBaseSalary + "，";
      }
      if (expectedBottomGuard) {
        str += "保底：" + expectedBottomGuard + "，";
      }
      if (expectedSigningBonus) {
        str += "签约金：" + expectedSigningBonus + "，";
      }
      if (expectedOther) {
        str += "其他：" + expectedOther;
      }
      return str;
    }
  }
};
export { mixin };
